import request from '@/utils/request'

// 查询请假信息列表
export function listManage(query) {
  return request({
    url: '/leavemanage/manage/list',
    method: 'get',
    params: query
  })
}

// 查询请假信息详细
export function getManage(leaveId) {
  return request({
    url: '/leavemanage/manage/' + leaveId,
    method: 'get'
  })
}

// 新增请假信息
export function addManage(data) {
  return request({
    url: '/leavemanage/manage',
    method: 'post',
    data: data
  })
}

// 修改请假信息
export function updateManage(data) {
  return request({
    url: '/leavemanage/manage',
    method: 'put',
    data: data
  })
}

// 删除请假信息
export function delManage(leaveId) {
  return request({
    url: '/leavemanage/manage/' + leaveId,
    method: 'delete'
  })
}

// 导出请假信息
export function exportManage(query) {
  return request({
    url: '/leavemanage/manage/export',
    method: 'get',
    params: query
  })
}
